<?php
class Zend_View_Helper_EduNews
{
    public function eduNews($url, $num = null)
    {
        $channel = new Zend_Feed_Rss($url);
        $posts = 0;
        foreach ($channel as $item){
            $posts ++;
            if ($posts > $num){
                break;
            }
            echo "<p><a href = '".$item->link."'>".$item->title()."</a></p>";
            echo $item->description;

        }
    }
}